uCOS Port - Review and Notes

Complete the port of the uCOS project. Below is a list of the files and what needs to be for each.

Interrupt Control

bsp/cpu_a.s

  • Implement save of CPSR register
  • Implement restore of CPSR register

Timer

bsp/bsp.c

  • Intialize the timer
    • Set VIC registers correctly
    • Use CP100 Timer project as guide
  • Handle timer interrupt
    • Reset timer
    • Info OS that tick occured

Ticks

inc/os_cfg.h

  • Define number of ticks per second

Defines

inc/app_cfg.h

  • Add any needed includes
  • Define default stack sizes for tasks in OS_STK units
  • Define task priorities

inc/cpu.h

  • Define size of a stack entry
  • Define size of the CPSR

Startup

app/main.c

  • Allocate a stack for the startup task
  • Add system initialization code to main()

Application

app/tasks.c

  • Implement StartupTask()
  • Implement several worker tasks

Table Of Contents

Previous topic

uCOS Startup Walk Through

Next topic

Startup Assembly File

This Page